package com.tencet.entity;

/**
 * @author Yangjx
 * @version 1.0.0
 * @ClassName OpenAccount.java
 * @Description TODO 开户功能，生成二类账户，设置二类账户的支付密码。
 * @createTime 2022年07月20日 14:49
 */
public class OpenAccount {
    private String id;                //uuid,主键
    private Integer accountType;       //开户是否成功：1成功，0失败。
    private String name;               //开户输入姓名
    private String idNumber;           //身份证号
    private String phone;              //注册时的手机号
    private String secondAccountNumber;//生成的十位二类账户号
    private String payPassword;        //支付密码

    public OpenAccount() {
    }

    public OpenAccount(String id, Integer accountType, String name, String idNumber, String phone, String secondAccountNumber, String payPassword) {
        this.id = id;
        this.accountType = accountType;
        this.name = name;
        this.idNumber = idNumber;
        this.phone = phone;
        this.secondAccountNumber = secondAccountNumber;
        this.payPassword = payPassword;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSecondAccountNumber() {
        return secondAccountNumber;
    }

    public void setSecondAccountNumber(String secondAccountNumber) {
        this.secondAccountNumber = secondAccountNumber;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    @Override
    public String toString() {
        return "OpenAccount{" +
                "id=" + id +
                ", accountType=" + accountType +
                ", name='" + name + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", phone='" + phone + '\'' +
                ", secondAccountNumber='" + secondAccountNumber + '\'' +
                ", payPassword='" + payPassword + '\'' +
                '}';
    }
}
